/*
* dns.x: Remote message printing protocol
*/

struct dns_record
{
    string name<256>;
    string address<256>;
};

program AGENT_ADDRESS_PROG
{
	version AGENT_ADDRESS_VERS
	{
		int GETADDRESS(void) = 1;
	    int UNREGISTER(string) = 2;
	    int REGISTER_STATIC(dns_record) = 3;
	    int REGISTER_DYNAMIC(dns_record) = 4;
		int RESOLVE(string) = 5;
	} = 1;
} = 1001;
